package com.shensi.appCollect.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @date 2023/12/21
 */
public enum OrderStatus implements IEnum<Integer> {
    NOT_PAY(0,"未支付"),
    PAID(1,"已支付"),
    PAY_FAIL(2,"支付失败"),
    REFUND(3,"已退款"),
    ;

    @JsonValue
    private final Integer code;
    private final String desc;

    OrderStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
